package itheima.zuiye.Test.Test0;

import itheima.d02.MyRunnable;

public class Test {
    public static void main(String[] args) {
        MyRunnable target = new MyRunnable();
        Thread xiaohaong = new Thread(target, "小红");
        Thread xiaoming = new Thread(target, "小明");
        xiaohaong.start();
        xiaoming.start();


        System.out.println("小红送出"+xiaohaong+"份礼物");
        System.out.println("小明送出"+xiaoming+"份礼物");


    }
}
